<html>
<head>
<link rel="stylesheet" href="os3calendar.css" type="text/css" />
<link rel="stylesheet" href="../../os3jslib/css/form.css" type="text/css" />

<script src="../../os3jslib/liwe.js" type="text/javascript"></script>
<script src="../../os3jslib/object_enh.js" type="text/javascript"></script>
<script src="../../os3jslib/string_enh.js" type="text/javascript"></script>
<script src="../../os3jslib/utils.js" type="text/javascript"></script>
<script src="../../os3jslib/form.js" type="text/javascript"></script>
<script src="../../os3jslib/validators.js" type="text/javascript"></script>
<script src="../../os3jslib/ajax_manager.js" type="text/javascript"></script>
<script src="../../os3jslib/dom.js" type="text/javascript"></script>

<script src="../wwl.js" type="text/javascript"></script>
<script src="calendar.class.js" type="text/javascript"></script>
<script src="calendar.js" type="text/javascript"></script>
<script src="form.calendar.js" type="text/javascript"></script>

<script type="text/javascript">
function init ()
{
	var f = new liwe.form.instance ( "test" );
	
	f.calendar ( { name: "cal", label: "Calendario", value: "2009-01-12" } );
	f.calendar ( { name: "cal2", label: "Calendario", value: "2009-01-12 12:34", time: true } );

	f.set ( "block_main" );
}
function get ()
{
	var f = liwe.form.get ( "test" );

	console.debug ( "Values: %o", f.get_values () );
}

function set ()
{
	var f = liwe.form.get ( "test" );
	f.set_value ( "cal", "2010-03-04" );
}
</script>
</head>
<body onload="init()">


<div id="block_main"></div>

<a href="javascript:get()">Get</a>
<a href="javascript:set()">Set</a>


</body>
</html>
